import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";

// 经营数据
export function totalRechargeRelated(params:any) {
  return http.request("get", baseUrlApi("business/recharge_order/totalRechargeRelated"), { params });
}
// 税务数据
export function totalInvoiceRelated(params:any) {
  return http.request("get", baseUrlApi("business/invoice_order/totalInvoiceRelated"), { params });
}
// 合作数据 
export function totalMerchantsRelated(params:any) {
  return http.request("get", baseUrlApi("business/merchants_info/totalMerchantsRelated"), { params })
}
// 待办事项 
export function backlog() {
  return http.request("get", baseUrlApi("business/salary_payment_schedule/backlog"))
}
// use 税务端-监管首页-开票数量
export function InvoiceOfNumber(params) {
  return http.request("get", baseUrlApi("business/invoice_order/getInvoiceOfNumber"), { params })
}
// use 税务端-监管首页-资金金额
export function InfoTax(params) {
  return http.request("get", baseUrlApi("business/merchants_account/getInfoTax"), { params })
}
// use 税务端-根据税源地ID查询合作公司列表
export const MerchantsInfoByTaxSourcesId = (taxSourcesId: number | string) => {
  return http.request("get", baseUrlApi(`business/merchants_info/getMerchantsInfoByTaxSourcesId/${taxSourcesId}`))
}
// use 税务端-监管首页-合作公司列表
export function listmerchantsInfo(params:any) {
  return http.request("get", baseUrlApi("business/merchants_info/listTax"), { params });
}
